// 导入基础包
import React, { useState } from 'react'
import { connect } from 'umi'

// 导入处理函数
import * as io from '../../services/socketio'
import * as tb from '../../methods/table'

const PageView = (props) => {

    console.log(props.match.params)

    const { global: state, dispatch } = props
    const fv = state.file_view

    return (
        <div>
            {state.table_cols.map((key, id) =>
                <p key={id}>{key.title}：{fv[key.key] ? fv[key.key] : '-'}</p>
            )}
        </div>
    )
}

export default connect(({ global, loading }) => ({ global, loading }))(PageView)